{% extends "snapboard/base_forum.html" %}
{% load i18n pagination_tags %}

{% block snap_extra_head %}
    {{ block.super }}
    <link type="text/css" rel="stylesheet" href="{{ SNAP_MEDIA_PREFIX }}/css/post.css" />
{% endblock %}

{% load extras %}

{% block snapboard_main %}
    <div id="thread-rpc-feedback" class="rpc-message span-14">
        {# This DIV is for RPC feedback messages for the whole thread #}
    </div>
    <div class="thread-menu span-14">
        {% if user.is_staff %}
            <span>
                <a id="csticky{{ thr.id }}" class"csticky" href="#" onclick="set_csticky('{{ thr.id }}');">
                    {{ thr.csticky|yesno:_("unset csticky,set csticky") }}
                </a> 
            </span>
            &#149;
            <span>
                <a id="gsticky{{ thr.id }}" class="gsticky" href="#" onclick="set_gsticky('{{ thr.id }}');">
                    {{ thr.gsticky|yesno:_("unset gsticky,set gsticky") }}
                </a> 
            </span>
            &#149;
            <span>
                <a id="close{{ thr.id }}" class="close" href="#" onclick="set_close('{{ thr.id }}');">
                    {{ thr.closed|yesno:_("open thread,close thread") }}
                </a> 
            </span>
        {% endif %}
        {% if user.is_authenticated %}
            &#149;
            <span>
                <a id="watch{{ thr.id }}" class="watch" href="#" onclick="set_watch('{{ thr.id }}');">
                    {{ watched|yesno:_("don't watch,watch") }}
                </a> 
            </span>
        {% endif %}
    </div>
    <h2 class="small-title">
        <a href="{% url snapboard_category_thread_index thr.category.id %}">{{ thr.category }}</a>:
        {{ thr.subject }}
    </h2>
    {% autopaginate posts user_settings.ppp %}
    <div class="sb-pages span-14 last">{% paginate %}</div>

    {% include "snapboard/include/show_posts.html" %}

    <div class="sb-pages span-14 last">{% paginate %}</div>

    {% include "snapboard/include/addpost.html" %}

{% endblock %}
<!--
vim: ai ts=4 sts=4 et sw=4 
-->
